package com.lvwenguo.controller;

import com.lvwenguo.entity.User;
import com.lvwenguo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ControllerTest {

    @Autowired
    TestService testServiceImpl;


    @GetMapping("/test")
    public List<User> test(){
        return testServiceImpl.selectUser();
    }


}
